<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>产业行情资讯 - 商企通B2B平台</title>
  <!-- 引入外部资源 -->
  <script src="https://cdn.tailwindcss.com"></script>
  <link href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css" rel="stylesheet">
  <script src="https://cdn.jsdelivr.net/npm/chart.js@4.4.8/dist/chart.umd.min.js"></script>
  
  <!-- Tailwind 配置 -->
  <script>
    tailwind.config = {
      theme: {
        extend: {
          colors: {
            primary: '#165DFF',
            secondary: '#36CFC9',
            accent: '#722ED1',
            neutral: '#86909C',
            'neutral-dark': '#1D2129',
            'neutral-light': '#F2F3F5',
            success: '#00B42A',
            warning: '#FF7D00',
            danger: '#F53F3F',
          },
          fontFamily: {
            inter: ['Inter', 'system-ui', 'sans-serif'],
          },
        },
      }
    }
  </script>
  
  <!-- 自定义样式 -->
  <style type="text/tailwindcss">
    @layer utilities {
      .content-auto {
        content-visibility: auto;
      }
      .text-shadow {
        text-shadow: 0 2px 4px rgba(0,0,0,0.1);
      }
      .card-hover {
        transition: all 0.3s ease;
      }
      .card-hover:hover {
        transform: translateY(-5px);
      }
      .gradient-overlay {
        background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 100%);
      }
    }
  </style>
</head>

<body class="font-inter bg-gray-50 text-neutral-dark">
  <!-- 页面主体内容 -->
  <main class="container mx-auto px-4 sm:px-6 lg:px-8 py-8">
    <!-- 页面标题与路径导航 -->
    <div class="mb-8">
      <div class="flex flex-wrap items-center text-sm text-neutral mb-2">
        <a href="#" class="hover:text-primary">首页</a>
        <i class="fa fa-angle-right mx-2 text-xs"></i>
        <span class="text-neutral-dark">行情资讯</span>
      </div>
      <h1 class="text-[clamp(1.5rem,3vw,2.5rem)] font-bold text-neutral-dark">产业行情资讯</h1>
      <p class="text-neutral mt-2 max-w-3xl">实时掌握行业动态、价格走势与市场分析，助力企业精准决策</p>
    </div>
    
    <!-- 行情概览区 -->
    <section class="mb-10 bg-white rounded-xl shadow-sm p-6">
      <div class="flex flex-wrap justify-between items-center mb-6">
        <h2 class="text-xl font-bold">行情概览</h2>
        <div class="flex items-center space-x-2 mt-2 sm:mt-0">
          <button class="px-3 py-1 text-sm bg-primary text-white rounded-md">今日</button>
          <button class="px-3 py-1 text-sm text-neutral hover:bg-gray-100 rounded-md transition-colors">本周</button>
          <button class="px-3 py-1 text-sm text-neutral hover:bg-gray-100 rounded-md transition-colors">本月</button>
          <button class="px-3 py-1 text-sm text-neutral hover:bg-gray-100 rounded-md transition-colors">全年</button>
        </div>
      </div>
      
      <!-- 主要品类价格卡片 -->
      <div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-5">
        <!-- 品类卡片1 -->
        <div class="border border-gray-100 rounded-lg p-5 card-hover bg-gradient-to-br from-blue-50 to-white">
          <div class="flex justify-between items-start mb-4">
            <div>
              <h3 class="text-neutral font-medium">电子元器件</h3>
              <p class="text-xs text-neutral mt-1">更新于 09:30</p>
            </div>
            <div class="w-10 h-10 rounded-full bg-primary/10 flex items-center justify-center text-primary">
              <i class="fa fa-microchip"></i>
            </div>
          </div>
          <div class="flex items-end">
            <span class="text-2xl font-bold">¥8,652</span>
            <span class="ml-2 text-success flex items-center text-sm">
              <i class="fa fa-arrow-up mr-1"></i>2.3%
            </span>
          </div>
          <div class="mt-3 h-10">
            <canvas class="mini-chart" data-values="[65, 59, 80, 81, 56, 55, 72, 86]"></canvas>
          </div>
        </div>
        
        <!-- 品类卡片2 -->
        <div class="border border-gray-100 rounded-lg p-5 card-hover bg-gradient-to-br from-green-50 to-white">
          <div class="flex justify-between items-start mb-4">
            <div>
              <h3 class="text-neutral font-medium">金属原材料</h3>
              <p class="text-xs text-neutral mt-1">更新于 10:15</p>
            </div>
            <div class="w-10 h-10 rounded-full bg-success/10 flex items-center justify-center text-success">
              <i class="fa fa-cubes"></i>
            </div>
          </div>
          <div class="flex items-end">
            <span class="text-2xl font-bold">¥12,480</span>
            <span class="ml-2 text-danger flex items-center text-sm">
              <i class="fa fa-arrow-down mr-1"></i>1.1%
            </span>
          </div>
          <div class="mt-3 h-10">
            <canvas class="mini-chart" data-values="[82, 86, 75, 65, 59, 68, 62, 58]"></canvas>
          </div>
        </div>
        
        <!-- 品类卡片3 -->
        <div class="border border-gray-100 rounded-lg p-5 card-hover bg-gradient-to-br from-purple-50 to-white">
          <div class="flex justify-between items-start mb-4">
            <div>
              <h3 class="text-neutral font-medium">化工原料</h3>
              <p class="text-xs text-neutral mt-1">更新于 08:45</p>
            </div>
            <div class="w-10 h-10 rounded-full bg-accent/10 flex items-center justify-center text-accent">
              <i class="fa fa-flask"></i>
            </div>
          </div>
          <div class="flex items-end">
            <span class="text-2xl font-bold">¥5,326</span>
            <span class="ml-2 text-success flex items-center text-sm">
              <i class="fa fa-arrow-up mr-1"></i>3.7%
            </span>
          </div>
          <div class="mt-3 h-10">
            <canvas class="mini-chart" data-values="[42, 48, 51, 49, 55, 52, 58, 62]"></canvas>
          </div>
        </div>
        
        <!-- 品类卡片4 -->
        <div class="border border-gray-100 rounded-lg p-5 card-hover bg-gradient-to-br from-orange-50 to-white">
          <div class="flex justify-between items-start mb-4">
            <div>
              <h3 class="text-neutral font-medium">包装材料</h3>
              <p class="text-xs text-neutral mt-1">更新于 11:00</p>
            </div>
            <div class="w-10 h-10 rounded-full bg-warning/10 flex items-center justify-center text-warning">
              <i class="fa fa-box"></i>
            </div>
          </div>
          <div class="flex items-end">
            <span class="text-2xl font-bold">¥1,863</span>
            <span class="ml-2 text-success flex items-center text-sm">
              <i class="fa fa-arrow-up mr-1"></i>0.8%
            </span>
          </div>
          <div class="mt-3 h-10">
            <canvas class="mini-chart" data-values="[16, 17, 18, 17, 18, 19, 18, 19]"></canvas>
          </div>
        </div>
      </div>
    </section>
    
    <!-- 主要内容区：左侧资讯列表 + 右侧边栏 -->
    <div class="flex flex-col lg:flex-row gap-8">
      <!-- 左侧：资讯列表 -->
      <div class="lg:w-2/3">
        <!-- 筛选栏 -->
        <div class="bg-white rounded-xl shadow-sm p-5 mb-6">
          <div class="flex flex-wrap items-center gap-4">
            <span class="text-neutral whitespace-nowrap">资讯分类：</span>
            <button class="px-4 py-2 bg-primary text-white rounded-full text-sm">全部</button>
            <button class="px-4 py-2 bg-gray-100 hover:bg-gray-200 text-neutral rounded-full text-sm transition-colors">价格行情</button>
            <button class="px-4 py-2 bg-gray-100 hover:bg-gray-200 text-neutral rounded-full text-sm transition-colors">行业动态</button>
            <button class="px-4 py-2 bg-gray-100 hover:bg-gray-200 text-neutral rounded-full text-sm transition-colors">政策法规</button>
            <button class="px-4 py-2 bg-gray-100 hover:bg-gray-200 text-neutral rounded-full text-sm transition-colors">市场分析</button>
            <button class="px-4 py-2 bg-gray-100 hover:bg-gray-200 text-neutral rounded-full text-sm transition-colors">企业动态</button>
          </div>
        </div>
        
        <!-- 热门资讯 -->
        <div class="mb-8">
          <h2 class="text-xl font-bold mb-5 flex items-center">
            <i class="fa fa-fire text-warning mr-2"></i>热门资讯
          </h2>
          
          <!-- 置顶资讯 -->
          <div class="bg-white rounded-xl shadow-sm overflow-hidden mb-6 card-hover">
            <div class="relative">
              <img src="https://picsum.photos/id/180/1200/400" alt="置顶资讯图片" class="w-full h-56 object-cover">
              <div class="absolute top-3 left-3 bg-danger text-white text-xs px-2 py-1 rounded-md">置顶</div>
              <div class="absolute bottom-0 left-0 right-0 h-24 gradient-overlay"></div>
            </div>
            <div class="p-6">
              <div class="flex items-center text-sm text-neutral mb-3">
                <span class="bg-primary/10 text-primary px-2 py-0.5 rounded text-xs">政策法规</span>
                <span class="mx-3">|</span>
                <span><i class="fa fa-clock-o mr-1"></i>2023-06-15</span>
                <span class="mx-3">|</span>
                <span><i class="fa fa-eye mr-1"></i>2,358</span>
              </div>
              <h3 class="text-xl font-bold mb-3 hover:text-primary transition-colors">
                <a href="#">2023年第二季度原材料进口关税调整政策解读与市场影响分析</a>
              </h3>
              <p class="text-neutral mb-4 line-clamp-2">
                近日，海关总署发布了2023年第二季度原材料进口关税调整通知，涉及电子元器件、金属材料等多个品类。本次调整将对国内制造业成本产生显著影响，特别是对中小型企业的采购策略将带来重大变化...
              </p>
              <a href="#" class="inline-flex items-center text-primary hover:text-primary/80 font-medium transition-colors">
                阅读全文 <i class="fa fa-angle-right ml-1"></i>
              </a>
            </div>
          </div>
          
          <!-- 资讯列表 -->
          <div class="space-y-5">
            <!-- 资讯项1 -->
            <div class="bg-white rounded-xl shadow-sm overflow-hidden flex flex-col md:flex-row card-hover">
              <div class="md:w-1/3">
                <img src="https://picsum.photos/id/201/600/400" alt="资讯图片" class="w-full h-full object-cover md:h-48">
              </div>
              <div class="p-5 md:w-2/3">
                <div class="flex items-center text-sm text-neutral mb-2">
                  <span class="bg-warning/10 text-warning px-2 py-0.5 rounded text-xs">价格行情</span>
                  <span class="mx-3">|</span>
                  <span><i class="fa fa-clock-o mr-1"></i>2023-06-14</span>
                </div>
                <h3 class="text-lg font-bold mb-2 hover:text-primary transition-colors">
                  <a href="#">电子芯片价格持续回落，供应链紧张局势缓解</a>
                </h3>
                <p class="text-neutral text-sm mb-3 line-clamp-2">
                  随着全球芯片产能逐步恢复，加之市场需求趋于平稳，近一个月来电子芯片价格呈现持续回落态势。据行业数据显示，主流型号芯片价格较上月平均下降7.3%...
                </p>
                <div class="flex justify-between items-center">
                  <span class="text-xs text-neutral"><i class="fa fa-comment-o mr-1"></i>36条评论</span>
                  <a href="#" class="text-primary text-sm hover:text-primary/80 transition-colors">查看详情</a>
                </div>
              </div>
            </div>
            
            <!-- 资讯项2 -->
            <div class="bg-white rounded-xl shadow-sm overflow-hidden flex flex-col md:flex-row card-hover">
              <div class="md:w-1/3">
                <img src="https://picsum.photos/id/119/600/400" alt="资讯图片" class="w-full h-full object-cover md:h-48">
              </div>
              <div class="p-5 md:w-2/3">
                <div class="flex items-center text-sm text-neutral mb-2">
                  <span class="bg-accent/10 text-accent px-2 py-0.5 rounded text-xs">市场分析</span>
                  <span class="mx-3">|</span>
                  <span><i class="fa fa-clock-o mr-1"></i>2023-06-12</span>
                </div>
                <h3 class="text-lg font-bold mb-2 hover:text-primary transition-colors">
                  <a href="#">2023年下半年金属原材料市场走势预测报告</a>
                </h3>
                <p class="text-neutral text-sm mb-3 line-clamp-2">
                  受国际地缘政治和全球经济复苏进程影响，金属原材料市场呈现震荡格局。业内专家预测，2023年下半年，铜、铝等主要工业金属价格将呈现先抑后扬的走势...
                </p>
                <div class="flex justify-between items-center">
                  <span class="text-xs text-neutral"><i class="fa fa-comment-o mr-1"></i>52条评论</span>
                  <a href="#" class="text-primary text-sm hover:text-primary/80 transition-colors">查看详情</a>
                </div>
              </div>
            </div>
            
            <!-- 资讯项3 -->
            <div class="bg-white rounded-xl shadow-sm overflow-hidden flex flex-col md:flex-row card-hover">
              <div class="md:w-1/3">
                <img src="https://picsum.photos/id/26/600/400" alt="资讯图片" class="w-full h-full object-cover md:h-48">
              </div>
              <div class="p-5 md:w-2/3">
                <div class="flex items-center text-sm text-neutral mb-2">
                  <span class="bg-success/10 text-success px-2 py-0.5 rounded text-xs">行业动态</span>
                  <span class="mx-3">|</span>
                  <span><i class="fa fa-clock-o mr-1"></i>2023-06-10</span>
                </div>
                <h3 class="text-lg font-bold mb-2 hover:text-primary transition-colors">
                  <a href="#">国内最大化工园区扩建完成，年产能提升30%</a>
                </h3>
                <p class="text-neutral text-sm mb-3 line-clamp-2">
                  位于东部沿海的国家级化工园区扩建工程于近日竣工投产，该园区主要生产各类基础化工原料和高分子材料，扩建后年产能提升30%，将有效缓解国内部分化工产品供应紧张的局面...
                </p>
                <div class="flex justify-between items-center">
                  <span class="text-xs text-neutral"><i class="fa fa-comment-o mr-1"></i>28条评论</span>
                  <a href="#" class="text-primary text-sm hover:text-primary/80 transition-colors">查看详情</a>
                </div>
              </div>
            </div>
            
            <!-- 资讯项4 -->
            <div class="bg-white rounded-xl shadow-sm overflow-hidden flex flex-col md:flex-row card-hover">
              <div class="md:w-1/3">
                <img src="https://picsum.photos/id/160/600/400" alt="资讯图片" class="w-full h-full object-cover md:h-48">
              </div>
              <div class="p-5 md:w-2/3">
                <div class="flex items-center text-sm text-neutral mb-2">
                  <span class="bg-secondary/10 text-secondary px-2 py-0.5 rounded text-xs">企业动态</span>
                  <span class="mx-3">|</span>
                  <span><i class="fa fa-clock-o mr-1"></i>2023-06-08</span>
                </div>
                <h3 class="text-lg font-bold mb-2 hover:text-primary transition-colors">
                  <a href="#">行业龙头企业宣布重大技术突破，生产成本降低15%</a>
                </h3>
                <p class="text-neutral text-sm mb-3 line-clamp-2">
                  国内制造业龙头企业今日召开新闻发布会，宣布其研发的新型材料生产工艺取得重大突破，该技术可使核心产品生产成本降低15%，同时减少碳排放20%，预计将对行业竞争格局产生深远影响...
                </p>
                <div class="flex justify-between items-center">
                  <span class="text-xs text-neutral"><i class="fa fa-comment-o mr-1"></i>45条评论</span>
                  <a href="#" class="text-primary text-sm hover:text-primary/80 transition-colors">查看详情</a>
                </div>
              </div>
            </div>
          </div>
          
          <!-- 分页 -->
          <div class="mt-8 flex justify-center">
            <nav class="inline-flex rounded-md shadow-sm -space-x-px" aria-label="分页">
              <a href="#" class="relative inline-flex items-center px-2 py-2 rounded-l-md border border-gray-300 bg-white text-sm font-medium text-neutral hover:bg-gray-50">
                <i class="fa fa-angle-left"></i>
              </a>
              <a href="#" class="relative inline-flex items-center px-4 py-2 border border-gray-300 bg-primary text-sm font-medium text-white">
                1
              </a>
              <a href="#" class="relative inline-flex items-center px-4 py-2 border border-gray-300 bg-white text-sm font-medium text-neutral hover:bg-gray-50">
                2
              </a>
              <a href="#" class="relative inline-flex items-center px-4 py-2 border border-gray-300 bg-white text-sm font-medium text-neutral hover:bg-gray-50">
                3
              </a>
              <span class="relative inline-flex items-center px-4 py-2 border border-gray-300 bg-white text-sm font-medium text-neutral">
                ...
              </span>
              <a href="#" class="relative inline-flex items-center px-4 py-2 border border-gray-300 bg-white text-sm font-medium text-neutral hover:bg-gray-50">
                12
              </a>
              <a href="#" class="relative inline-flex items-center px-2 py-2 rounded-r-md border border-gray-300 bg-white text-sm font-medium text-neutral hover:bg-gray-50">
                <i class="fa fa-angle-right"></i>
              </a>
            </nav>
          </div>
        </div>
      </div>
      
      <!-- 右侧边栏 -->
      <div class="lg:w-1/3">
        <!-- 价格趋势图表 -->
        <div class="bg-white rounded-xl shadow-sm p-5 mb-6">
          <h3 class="text-lg font-bold mb-4">价格趋势</h3>
          <div class="mb-4 flex flex-wrap gap-2">
            <button class="px-3 py-1 text-xs bg-primary text-white rounded-full">电子元器件</button>
            <button class="px-3 py-1 text-xs bg-gray-100 text-neutral hover:bg-gray-200 rounded-full transition-colors">金属原材料</button>
            <button class="px-3 py-1 text-xs bg-gray-100 text-neutral hover:bg-gray-200 rounded-full transition-colors">化工原料</button>
          </div>
          <div class="h-64">
            <canvas id="priceChart"></canvas>
          </div>
        </div>
        
        <!-- 行业热点 -->
        <div class="bg-white rounded-xl shadow-sm p-5 mb-6">
          <h3 class="text-lg font-bold mb-4 flex items-center">
            <i class="fa fa-bolt text-warning mr-2"></i>行业热点
          </h3>
          <div class="space-y-4">
            <div class="flex">
              <span class="flex-shrink-0 w-6 h-6 rounded-full bg-primary text-white flex items-center justify-center text-sm font-bold mr-3">1</span>
              <a href="#" class="text-neutral-dark hover:text-primary transition-colors line-clamp-2">2023全球制造业供应链重构与中国企业应对策略</a>
            </div>
            <div class="flex">
              <span class="flex-shrink-0 w-6 h-6 rounded-full bg-gray-200 text-neutral-dark flex items-center justify-center text-sm font-bold mr-3">2</span>
              <a href="#" class="text-neutral-dark hover:text-primary transition-colors line-clamp-2">原材料价格波动下的中小企业成本控制方法</a>
            </div>
            <div class="flex">
              <span class="flex-shrink-0 w-6 h-6 rounded-full bg-gray-200 text-neutral-dark flex items-center justify-center text-sm font-bold mr-3">3</span>
              <a href="#" class="text-neutral-dark hover:text-primary transition-colors line-clamp-2">绿色制造标准出台，将影响80%以上工业企业</a>
            </div>
            <div class="flex">
              <span class="flex-shrink-0 w-6 h-6 rounded-full bg-gray-200 text-neutral-dark flex items-center justify-center text-sm font-bold mr-3">4</span>
              <a href="#" class="text-neutral-dark hover:text-primary transition-colors line-clamp-2">B2B电商平台交易规模突破万亿，同比增长27%</a>
            </div>
            <div class="flex">
              <span class="flex-shrink-0 w-6 h-6 rounded-full bg-gray-200 text-neutral-dark flex items-center justify-center text-sm font-bold mr-3">5</span>
              <a href="#" class="text-neutral-dark hover:text-primary transition-colors line-clamp-2">跨境贸易新政策解读：关税减免与通关便利化措施</a>
            </div>
          </div>
        </div>
        
        <!-- 订阅行情推送 -->
        <div class="bg-gradient-to-br from-primary to-primary/80 rounded-xl shadow-sm p-6 text-white mb-6">
          <h3 class="text-lg font-bold mb-2">订阅行情推送</h3>
          <p class="text-white/80 text-sm mb-4">第一时间获取您关注的行业价格变动和重要资讯</p>
          <form class="space-y-3">
            <div>
              <select class="w-full px-4 py-2 rounded-lg text-neutral-dark text-sm focus:outline-none focus:ring-2 focus:ring-white/50">
                <option>电子元器件行业</option>
                <option>金属原材料行业</option>
                <option>化工原料行业</option>
                <option>包装材料行业</option>
                <option>机械设备行业</option>
              </select>
            </div>
            <div>
              <input type="email" placeholder="请输入您的邮箱地址" 
                    class="w-full px-4 py-2 rounded-lg text-neutral-dark text-sm focus:outline-none focus:ring-2 focus:ring-white/50">
            </div>
            <button type="submit" class="w-full bg-white text-primary font-medium py-2 rounded-lg hover:bg-gray-100 transition-colors">
              立即订阅
            </button>
          </form>
          <p class="text-white/60 text-xs mt-3 text-center">我们尊重您的隐私，不会向第三方泄露您的信息</p>
        </div>
        
        <!-- 行业展会信息 -->
        <div class="bg-white rounded-xl shadow-sm p-5">
          <h3 class="text-lg font-bold mb-4 flex items-center">
            <i class="fa fa-calendar text-primary mr-2"></i>近期展会
          </h3>
          <div class="space-y-4">
            <div class="border-l-2 border-primary pl-3 py-1">
              <h4 class="font-medium text-neutral-dark">2023国际电子元器件博览会</h4>
              <p class="text-neutral text-sm mt-1"><i class="fa fa-map-marker mr-1"></i>上海国际会展中心</p>
              <p class="text-neutral text-sm mt-1"><i class="fa fa-clock-o mr-1"></i>2023-07-15 至 2023-07-18</p>
            </div>
            <div class="border-l-2 border-gray-200 pl-3 py-1">
              <h4 class="font-medium text-neutral-dark">中国国际化工新材料展览会</h4>
              <p class="text-neutral text-sm mt-1"><i class="fa fa-map-marker mr-1"></i>广州琶洲国际会展中心</p>
              <p class="text-neutral text-sm mt-1"><i class="fa fa-clock-o mr-1"></i>2023-08-05 至 2023-08-07</p>
            </div>
            <div class="border-l-2 border-gray-200 pl-3 py-1">
              <h4 class="font-medium text-neutral-dark">2023中国制造业供应链峰会</h4>
              <p class="text-neutral text-sm mt-1"><i class="fa fa-map-marker mr-1"></i>北京国家会议中心</p>
              <p class="text-neutral text-sm mt-1"><i class="fa fa-clock-o mr-1"></i>2023-09-10 至 2023-09-12</p>
            </div>
          </div>
          <a href="#" class="text-primary text-sm hover:text-primary/80 mt-4 block text-center transition-colors">
            查看更多展会 <i class="fa fa-angle-right ml-1"></i>
          </a>
        </div>
      </div>
    </div>
  </main>
  
  <!-- 页脚 -->
  <footer class="bg-white py-12 border-t border-gray-200">
    <div class="container mx-auto px-4">
      <div class="grid grid-cols-1 md:grid-cols-4 gap-8 mb-8">
        <div>
          <h3 class="font-bold text-dark mb-4">关于我们</h3>
          <ul class="space-y-2 text-sm text-gray-500">
            <li><a href="#" class="hover:text-primary transition-colors">平台介绍</a></li>
            <li><a href="#" class="hover:text-primary transition-colors">发展历程</a></li>
            <li><a href="#" class="hover:text-primary transition-colors">团队成员</a></li>
            <li><a href="#" class="hover:text-primary transition-colors">合作伙伴</a></li>
            <li><a href="#" class="hover:text-primary transition-colors">联系我们</a></li>
          </ul>
        </div>
        
        <div>
          <h3 class="font-bold text-dark mb-4">采购指南</h3>
          <ul class="space-y-2 text-sm text-gray-500">
            <li><a href="#" class="hover:text-primary transition-colors">如何采购</a></li>
            <li><a href="#" class="hover:text-primary transition-colors">支付方式</a></li>
            <li><a href="#" class="hover:text-primary transition-colors">配送说明</a></li>
            <li><a href="#" class="hover:text-primary transition-colors">售后服务</a></li>
            <li><a href="#" class="hover:text-primary transition-colors">常见问题</a></li>
          </ul>
        </div>
        
        <div>
          <h3 class="font-bold text-dark mb-4">供应商服务</h3>
          <ul class="space-y-2 text-sm text-gray-500">
            <li><a href="#" class="hover:text-primary transition-colors">入驻流程</a></li>
            <li><a href="#" class="hover:text-primary transition-colors">商家后台</a></li>
            <li><a href="#" class="hover:text-primary transition-colors">营销服务</a></li>
            <li><a href="#" class="hover:text-primary transition-colors">培训中心</a></li>
            <li><a href="#" class="hover:text-primary transition-colors">规则中心</a></li>
          </ul>
        </div>
        
        <div>
          <h3 class="font-bold text-dark mb-4">联系我们</h3>
          <ul class="space-y-3 text-sm text-gray-500">
            <li class="flex items-start">
              <i class="fa fa-phone text-primary mt-1 mr-3"></i>
              <span>服务热线：400-123-4567<br>工作时间：9:00-18:00（周一至周五）</span>
            </li>
            <li class="flex items-start">
              <i class="fa fa-envelope-o text-primary mt-1 mr-3"></i>
              <span>邮箱：service@gongpinhui.com</span>
            </li>
            <li class="flex items-start">
              <i class="fa fa-map-marker text-primary mt-1 mr-3"></i>
              <span>地址：北京市朝阳区建国路88号</span>
            </li>
          </ul>
          <div class="mt-4 flex space-x-4">
            <a href="#" class="w-8 h-8 bg-primary/10 rounded-full flex items-center justify-center text-primary hover:bg-primary hover:text-white transition-colors">
              <i class="fa fa-weixin"></i>
            </a>
            <a href="#" class="w-8 h-8 bg-primary/10 rounded-full flex items-center justify-center text-primary hover:bg-primary hover:text-white transition-colors">
              <i class="fa fa-weibo"></i>
            </a>
            <a href="#" class="w-8 h-8 bg-primary/10 rounded-full flex items-center justify-center text-primary hover:bg-primary hover:text-white transition-colors">
              <i class="fa fa-linkedin"></i>
            </a>
          </div>
        </div>
      </div>
      
      <div class="pt-8 border-t border-gray-200 text-center text-sm text-gray-400">
        <p>© 2024 工品汇 B2B工业原材料采购平台 版权所有</p>
        <p class="mt-2">
          <a href="#" class="hover:text-primary transition-colors">营业执照</a> | 
          <a href="#" class="hover:text-primary transition-colors">ISO9001认证</a> | 
          <a href="#" class="hover:text-primary transition-colors">支付安全认证</a> | 
          <a href="#" class="hover:text-primary transition-colors">隐私政策</a>
        </p>
      </div>
    </div>
  </footer>
  
  <!-- 返回顶部按钮 -->
  <button id="back-to-top" class="fixed bottom-6 right-6 bg-primary text-white w-12 h-12 rounded-full flex items-center justify-center shadow-lg opacity-0 invisible transition-all duration-300 hover:bg-primary/90">
    <i class="fa fa-angle-up text-xl"></i>
  </button>

  <!-- JavaScript -->
  <script>
    // 返回顶部功能
    document.getElementById('back-to-top').addEventListener('click', function() {
      window.scrollTo({
        top: 0,
        behavior: 'smooth'
      });
    });
    
    // 监听滚动显示/隐藏返回顶部按钮
    window.addEventListener('scroll', function() {
      const backToTop = document.getElementById('back-to-top');
      
      if (window.scrollY > 300) {
        backToTop.classList.remove('opacity-0');
        backToTop.classList.remove('invisible');
        backToTop.classList.add('opacity-100');
      } else {
        backToTop.classList.add('opacity-0');
        backToTop.classList.add('invisible');
        backToTop.classList.remove('opacity-100');
      }
    });
    
    // 初始化迷你图表
    document.addEventListener('DOMContentLoaded', function() {
      // 迷你趋势图
      const miniCharts = document.querySelectorAll('.mini-chart');
      miniCharts.forEach(canvas => {
        const ctx = canvas.getContext('2d');
        const values = JSON.parse(canvas.dataset.values);
        
        new Chart(ctx, {
          type: 'line',
          data: {
            labels: Array(values.length).fill(''),
            datasets: [{
              data: values,
              borderColor: '#165DFF',
              backgroundColor: 'rgba(22, 93, 255, 0.1)',
              borderWidth: 2,
              pointRadius: 0,
              tension: 0.4,
              fill: true
            }]
          },
          options: {
            responsive: true,
            maintainAspectRatio: false,
            plugins: {
              legend: {
                display: false
              },
              tooltip: {
                enabled: false
              }
            },
            scales: {
              x: {
                display: false
              },
              y: {
                display: false
              }
            },
            animation: false
          }
        });
      });
      
      // 价格趋势图表
      const priceChartCtx = document.getElementById('priceChart').getContext('2d');
      new Chart(priceChartCtx, {
        type: 'line',
        data: {
          labels: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'],
          datasets: [{
            label: '电子元器件指数',
            data: [100, 105, 112, 108, 115, 120, 118, 125, 130, 128, 135, 140],
            borderColor: '#165DFF',
            backgroundColor: 'rgba(22, 93, 255, 0.1)',
            borderWidth: 2,
            pointRadius: 3,
            pointBackgroundColor: '#165DFF',
            tension: 0.3,
            fill: true
          }]
        },
        options: {
          responsive: true,
          maintainAspectRatio: false,
          plugins: {
            legend: {
              display: false
            }
          },
          scales: {
            x: {
              grid: {
                display: false
              }
            },
            y: {
              beginAtZero: false,
              grid: {
                borderDash: [2, 4],
                color: 'rgba(0, 0, 0, 0.05)'
              }
            }
          }
        }
      });
    });
  </script>
</body>
</html>